//
//  oldService.m
//  laonianbangSupport
//
//  Created by 勇拓 李 on 18/3/7.
//  Copyright © 2018年 zaiyou. All rights reserved.
//

#import "oldService.h"

@implementation oldService

- (NSInteger)getTimeCostByMinutes
{
    return [self.timeCost integerValue]/60;
}

- (instancetype)initWithDictionary:(NSDictionary *)dictionary
{
    self = [super initWithDictionary:dictionary];
    if (dictionary[@"childList"]) {
        NSMutableArray *array = [NSMutableArray array];
        for (int i = 0; i < [dictionary[@"childList"] count]; i++) {
            oldService *service = [[oldService alloc] initWithDictionary:dictionary[@"childList"][i]];
            [array addObject:service];
        }
        
        self.childList = array;
    }
    
    return self;
}

@end
